package site.assad.injuctfun;

import org.springframework.beans.factory.support.MethodReplacer;

import java.lang.reflect.Method;

/**
 * Author: Al-assad 余林颖
 * E-mail: yulinying_1994@outlook.com
 * Date: 2017/11/30 2:27
 * Description: 演示方法替换
 */
public class Article1 implements MethodReplacer{
    @Override
    public Object reimplement(Object obj, Method method, Object[] args) throws Throwable {
        User user = new User();
        user.setName("Vancy");
        return user;
    }
}
